package com.kcl.dfss;

import com.kcl.dfss.utils.ApplicationData;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.TextView;

public class HistoryActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_history);

		TextView textview = (TextView) findViewById(R.id.history_summery);
		textview.setText(String.format(
				getResources().getString(R.string.history_summery_content),
				(int)ApplicationData.getInstance(this).getTotalTime()));
		Button button = (Button)findViewById(R.id.back);
		button.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}
}
